package com.kyxx.topics.activity;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

import com.kyxx.topics.BaseActivity;
import com.kyxx.topics.R;
import com.kyxx.topics.utils.ApkUpdateUtils;

public class AboutActivity extends BaseActivity {
    private TextView tv_name;

    @Override
    protected void loadTopBar(String title) {
        super.loadTopBar(title);
        top_bar_tv_left.setVisibility(View.GONE);
        top_bar_iv_left.setVisibility(View.VISIBLE);
        top_bar_tv_right.setVisibility(View.GONE);
        top_bar_iv_right.setVisibility(View.GONE);
        top_bar_iv_left.setImageDrawable(getResources().getDrawable(R.drawable.ic_arrow_right));
        top_bar_iv_left.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }

    @Override
    protected void loadViewLayout() {
        setContentView(R.layout.activity_about);
    }

    @Override
    protected void findViewById() {
        loadTopBar("关于我们");
        tv_name = (TextView) findViewById(R.id.tv_name);
    }

    @Override
    protected void setListener() {

    }

    @Override
    protected void processLogic() {
        tv_name.setText(ApkUpdateUtils.getVersionName(AboutActivity.this));
    }
}
